﻿using STHPMS1.ICore.I_Entity;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STHPMS1.ICore.I_DAL.Repository
{
    public interface IB_RoadwayRepository : IDal
    {
        int GetDir(string rdid);
        IB_Roadway GetRoadObj(string rdid);
        /// <summary>
        /// 检测路线是否分方向
        /// </summary>
        /// <param name="rdwayid"></param>
        /// <param name="dir"></param>
        /// <returns></returns>
        bool CheckRoadDir(string rdwayid, int dir);
        int GetAdmdiv(string rdwayid);

       /// <summary>
       /// 查询有检测数据的路线
       /// </summary>
       /// <typeparam name="T"></typeparam>
       /// <returns></returns>
        IEnumerable<T> SearchRoad<T>()
            where T : class, IB_Roadway;
        /// <summary>
        /// 计算路线总长度
        /// </summary>
        /// <param name="rdwayid"></param>
        /// <returns></returns>
        double GetLength(string rdwayid);
    }
}
